package com.tjzx.entity;

/**
 * EipNoticeInfoFileimgId entity. @author MyEclipse Persistence Tools
 */

public class EipNoticeInfoFileimgId implements java.io.Serializable {

	// Fields

	private String filename;
	private String mime;
	private String content;
	private String flag;
	private Integer filesize;
	private Long ifid;
	private Integer itid;

	// Constructors

	/** default constructor */
	public EipNoticeInfoFileimgId() {
	}

	/** minimal constructor */
	public EipNoticeInfoFileimgId(Long ifid) {
		this.ifid = ifid;
	}

	/** full constructor */
	public EipNoticeInfoFileimgId(String filename, String mime, String content,
			String flag, Integer filesize, Long ifid, Integer itid) {
		this.filename = filename;
		this.mime = mime;
		this.content = content;
		this.flag = flag;
		this.filesize = filesize;
		this.ifid = ifid;
		this.itid = itid;
	}

	// Property accessors

	public String getFilename() {
		return this.filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getMime() {
		return this.mime;
	}

	public void setMime(String mime) {
		this.mime = mime;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getFlag() {
		return this.flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public Integer getFilesize() {
		return this.filesize;
	}

	public void setFilesize(Integer filesize) {
		this.filesize = filesize;
	}

	public Long getIfid() {
		return this.ifid;
	}

	public void setIfid(Long ifid) {
		this.ifid = ifid;
	}

	public Integer getItid() {
		return this.itid;
	}

	public void setItid(Integer itid) {
		this.itid = itid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EipNoticeInfoFileimgId))
			return false;
		EipNoticeInfoFileimgId castOther = (EipNoticeInfoFileimgId) other;

		return ((this.getFilename() == castOther.getFilename()) || (this
				.getFilename() != null
				&& castOther.getFilename() != null && this.getFilename()
				.equals(castOther.getFilename())))
				&& ((this.getMime() == castOther.getMime()) || (this.getMime() != null
						&& castOther.getMime() != null && this.getMime()
						.equals(castOther.getMime())))
				&& ((this.getContent() == castOther.getContent()) || (this
						.getContent() != null
						&& castOther.getContent() != null && this.getContent()
						.equals(castOther.getContent())))
				&& ((this.getFlag() == castOther.getFlag()) || (this.getFlag() != null
						&& castOther.getFlag() != null && this.getFlag()
						.equals(castOther.getFlag())))
				&& ((this.getFilesize() == castOther.getFilesize()) || (this
						.getFilesize() != null
						&& castOther.getFilesize() != null && this
						.getFilesize().equals(castOther.getFilesize())))
				&& ((this.getIfid() == castOther.getIfid()) || (this.getIfid() != null
						&& castOther.getIfid() != null && this.getIfid()
						.equals(castOther.getIfid())))
				&& ((this.getItid() == castOther.getItid()) || (this.getItid() != null
						&& castOther.getItid() != null && this.getItid()
						.equals(castOther.getItid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getFilename() == null ? 0 : this.getFilename().hashCode());
		result = 37 * result
				+ (getMime() == null ? 0 : this.getMime().hashCode());
		result = 37 * result
				+ (getContent() == null ? 0 : this.getContent().hashCode());
		result = 37 * result
				+ (getFlag() == null ? 0 : this.getFlag().hashCode());
		result = 37 * result
				+ (getFilesize() == null ? 0 : this.getFilesize().hashCode());
		result = 37 * result
				+ (getIfid() == null ? 0 : this.getIfid().hashCode());
		result = 37 * result
				+ (getItid() == null ? 0 : this.getItid().hashCode());
		return result;
	}

}